package georah.carto
{

	/**
	 * 
	 * @author yuanm
	 */
	public class Extent
	{
		private static var _NULL:NullExtent=null;

		public static function get NULL():Extent
		{
			if (!_NULL)
			{
				_NULL=new NullExtent();
			}
			return _NULL;
		}

		public var maxX:Number;

		public var maxY:Number;

		public var minX:Number;

		public var minY:Number;

		private var _srid:int=4326;

		public final function get SRID():int
		{
			return _srid;
		}

		public final function set SRID(value:int):void
		{
			_srid=value;
		}

		public final function get height():Number
		{
			return maxY - minY;
		}

		public final function get width():Number
		{
			return maxX - minX;
		}

	}
}

import georah.carto.Extent;

class NullExtent extends Extent
{

}
